<?php /* Smarty version 2.6.26, created on 2013-12-19 14:10:58
         compiled from admin/statistic.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'geturl', 'admin/statistic.html', 27, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin/header.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<H1>Статистика</H1>
<table cellspacing='0'>
    <tr>
        <td>Количество тендеров: </td>
        <td><?php echo $this->_tpl_vars['stat']['tenders']; ?>
</td>
    </tr>
    <tr>
        <td>Количество активных тендеров: </td>
        <td><?php echo $this->_tpl_vars['stat']['live']; ?>
</td>
    </tr>
    <tr>
        <td style='border-bottom: 1px solid black;'>Количество тендеров в архиве: </td>
        <td style='border-bottom: 1px solid black;'><?php echo $this->_tpl_vars['stat']['archive']; ?>
</td>
    </tr>
    <tr>
        <td style='border-bottom: 1px solid black;'>Количество проектов: </td>
        <td style='border-bottom: 1px solid black;'><?php echo $this->_tpl_vars['stat']['projects']; ?>
</td>
    </tr>
    <tr>
        <td>Количество пользователей: </td>
        <td><?php echo $this->_tpl_vars['stat']['users']; ?>
</td>
    </tr>
    <tr>
        <td style='border-bottom: 1px solid black;'>Последний зарегистрированный пользователь: </td>
        <td style='border-bottom: 1px solid black;'><?php $_from = $this->_tpl_vars['stat']['last_user']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['user']):
?><a href="<?php echo smarty_function_geturl(array('route' => 'edituser','id' => $this->_tpl_vars['user']->getId()), $this);?>
"><?php echo $this->_tpl_vars['user']->manager; ?>
</a><?php endforeach; endif; unset($_from); ?></td>
    </tr>
    <tr>
        <td>Общее количество заявок: </td>
        <td><?php echo $this->_tpl_vars['stat']['requests']; ?>
</td>
    </tr>
    <tr>
        <td>Принятых заявок: </td>
        <td><?php echo $this->_tpl_vars['stat']['approved_requests']; ?>
</td>
    </tr>
    <tr>
        <td>Отклоненных заявок: </td>
        <td><?php echo $this->_tpl_vars['stat']['declined_requests']; ?>
</td>
    </tr>
    <tr>
        <td>Заявок на рассмотрении: </td>
        <td><?php echo $this->_tpl_vars['stat']['unknown_requests']; ?>
</td>
    </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>